import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

/* eslint-disable @typescript-eslint/no-inferrable-types */
//注意：entity类里都必须显式指明字段类型，否则会被当作Object类型导致数据库层处理失败

@Entity()
export class Card {
	@PrimaryGeneratedColumn() id: number;

	@Column() link: string;

	@Column() openCount: number = 0;
}
